package com.qf.medical.controller; /*
            
            " * ░░░░░░░░░░░░░░░░░░░░░░░░▄░░\n" +
            " * ░░░░░░░░░▐█░░░░░░░░░░░▄▀▒▌░\n" +
            " * ░░░░░░░░▐▀▒█░░░░░░░░▄▀▒▒▒▐\n" +
            " * ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐\n" +
            " * ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐\n" +
            " * ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌\n" +
            " * ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒\n" +
            " * ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐\n" +
            " * ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄\n" +
            " * ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒\n" +
            " * ▀▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒\n" +
            " * 单身狗就这样默默地看着你，一句话也不说。\n" +
            " */

import com.qf.medical.pojo.Admin;
import com.qf.medical.service.AdminService;
import com.qf.medical.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @EXPLAIN:
 * @author: 宋金锋
 * @Email: 2697586849@qq.com
 */
@RestController
@RequestMapping("/admin/")
@CrossOrigin("*")
public class AdminController {
    @Autowired
    private AdminService adminService;
    @RequestMapping("login")
    public R login(Admin admin, HttpSession session ){
        return adminService.login(admin,session);
    }
}
